const mongoose = require("mongoose");

mongoose.connect("mongodb://127.0.0.1:27017/h51801")

const db = mongoose.connection;

module.exports = {
    db,  //es6的语法相当于 db:db 
    mongoose
}